﻿using System.Collections.Generic;
using Moonwish.Core.DataAccess;

namespace Moonwish.Foundation.DataAccess.Interface
{
    /// <summary>
    /// 基础数据模块具有发布、作废功能。
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public interface IFoundationDataAccess<T> : IDataAccess<T>
    {
        /// <summary>
        /// 发布
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="userId"></param>
        void Publish(List<string> ids, string userId);

        /// <summary>
        /// 作废。
        /// </summary>
        /// <param name="ids"></param>
        /// <param name="userId"></param>
        void Disable(List<string> ids, string userId);
    }
}
